package com.gec.zhs.controller;

import com.gec.zhs.component.RedisComponent;
import com.gec.zhs.entity.config.AppConfig;
import com.gec.zhs.entity.vo.ResponseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhs
 * @version 1.0
 * @date 2025-02-08
 * @description 系统设置
 */
@Validated
@RestController
@RequestMapping("/sysSetting")
public class SysSetting extends ABaseController {

    @Autowired
    private RedisComponent redisComponent;

    @ApiOperation("获取系统配置")
    @RequestMapping("/getSetting")
    public ResponseVO getSetting() {
        System.out.println("分批设置");
        return getSuccessResponseVO(redisComponent.getSysSettingDto());
    }


}
